@echo off
set binf="%ProgramFiles%\Common Files\Microsoft Shared\web server extensions\12\BIN\"
set solname="Grep.SharePoint.SmartDocuments.wsp"
%binf%\stsadm -o retractsolution -name %solname% -immediate -allcontenturls
%binf%\stsadm -o execadmsvcjobs
%binf%\stsadm -o deletesolution -name %solname%
%binf%\stsadm -o execadmsvcjobs
%binf%\stsadm -o addsolution -filename %solname%
%binf%\stsadm -o execadmsvcjobs
%binf%\stsadm -o deploysolution -name %solname% -immediate -allcontenturls -allowGacDeployment -allowCasPolicies -force
%binf%\stsadm -o execadmsvcjobs
%binf%\stsadm -o copyappbincontent